import {
	http
} from "@/common/request.js";
// 消息列表
export function listPost_message(data) {
    return http.request({
      url: "/system/message/myMessageList",
      method: "get",
      params: data,
    });
  }

  // 已读
export function readpost(id) {
  return http.request({
    url: `/teacher/message/read/${id}`,
    method: "put",
    headers: {
      "Content-Type": "application/x-www-form-urlencoded",
    },
  });
}
// 获取考试详细信息

export function examInfo(id) {
  return http.request({
    url: `/exam/manager/${id}`,
    method: "get",
  })
}
// 根据补考申请id查询补考申请信息

export function getExamApplyInfoById(examApplyId) {
  return http.request({
    url: `/teacher/examApply/getExamApplyInfoById/${examApplyId}`,
    method: "get",
  });
}
// 通过考试记录id获取考试记录
// 学习消息中的试卷消息，它的keyid就是exampaperid，也就是考试记录id
export function getExamPaperInfoById(id) {
  return http.request({
    url: `/exam/paper/${id}`,
    method: "get",
  });
}

// 审批补考申请
export function examApply(data) {
  return http.request({
    url: `/teacher/examApply`,
    method: "put",
    data:data
  });
}

